package com.example.yiwei.crm.view.frament.dockDetailedMenu;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.data.GetDock;
import com.example.yiwei.crm.entity.dockingEntity;

/**
 * Created by Administrator on 2017/4/5.
 */

public class baseFragment extends Fragment {
    @Nullable
    private TextView txt_docking_mechanism,txt_docking_name,txt_docking_department,txt_docking_job,
            txt_phone_number,txt_department;
       dockingEntity dockingEntity;
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootview=inflater.inflate(R.layout.fragment_dock_base,container,false);
        txt_docking_mechanism= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_docking_mechanism);
        txt_docking_name= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_docking_name);
        txt_docking_department= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_docking_department);
        txt_department= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_department);
        txt_docking_job= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_docking_job);
        txt_phone_number= (TextView) rootview.findViewById(R.id.frm_dock_detailed_base_txt_phone_number);
         dockingEntity= GetDock.get();
        txt_docking_mechanism.setText(dockingEntity.getDocking_mechanism());
        txt_docking_name.setText(dockingEntity.getDocking_name());
        txt_docking_department.setText(dockingEntity.getDepartment());
        txt_docking_job.setText(dockingEntity.getProfessional_title());
        txt_phone_number.setText(dockingEntity.getPhone_number());

        return rootview;
    }
}
